﻿namespace DataProcessor.Processor
{
    public enum EnumFactorType
    {
        Water,
        Gas,
        Voc,
        None
    }

    public class FactorTypeHelper
    {
        public static EnumFactorType GetFactorType(string content)
        {
            var st = Hjt212Parser.Parser.GetStringByKey("ST", content);
            if (string.IsNullOrWhiteSpace(st))
            {
                return EnumFactorType.None;
            }

            if (st.Equals("31"))
            {
                return EnumFactorType.Gas;
            }

            if (st.Equals("32"))
            {
                return EnumFactorType.Water;
            }
            return EnumFactorType.None;
        }
    }

}
